<template>
    <!-- 我们的优势  -->
    <div class="advantage">
        <h2 class="advantage_h2">
            {{advantage.title}}
        </h2>
        <div class="advantage_item" v-for="(item,i) in advantage.list" :key="i">
            <div class="advantage_item_img">
                <img :src="item.imgUrl" alt="">
            </div>
            <div class="advantage_item_name">
                {{item.name}}
            </div>
            <div class="advantage_item_content tydisplay">
                <span>{{item.content}}</span>
            </div>
        </div>

    </div>
</template>

<script>
export default {
    name:"advantage",
    props:["advantage"]
}
</script>

<style scoped>
.tydisplay{
    display: flex;
}
.advantage{
    color: #1d2845;
    text-align: center;
}
.advantage_h2{
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 30px;
}
.advantage_item{
    margin: 20px 0;
}
.advantage_item_img>img{
    width: 35%;
}
.advantage_item_name{
    font-size: 1.4em;
    margin: 15px 0;
    font-weight: 600;
}
.advantage_item_content{
    justify-content: center;
}
.advantage_item_content>span{
    width: 70%;
    line-height: 22px;
    text-align: center;
    color: #6f7b8e;
    font-size: 1.2em;
}

</style>